<?php
	include_once 'functions.php';
	$url = $_POST['url'];
	$description = $_POST['description'];

	$con = getdb();
	$query = "INSERT INTO links(url,description) VALUES ('".$url."','".$description."')";
	$result = pg_query($query);

	if(!$result){

	}
	else{
		header("location: /labua");
	}
	pg_close($con);
?>